package com.example.domain.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class NoteVo {

    private String id;

    @NotBlank(message = "标题不得为空")
    private String title;

    @NotBlank(message = "typeId不得为空")
    private String typeId;

    @NotBlank(message = "标签不得为空")
    private String tag;

    @NotBlank(message = "内容不得为空")
    private String content;
}
